* {
  box-sizing: border-box;
}
html,
body,
.page {
  margin: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji,
    Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}
.page {
  display: flex;
  flex-direction: column;
  background-color: #eee;
  max-width: 1024px;
  margin: auto;
}
/* 顶部导航样式 */
.top {
  position: relative;
  z-index: 1;
  width: 100%;
  background-color: #d23e34;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
}
.top-title {
  text-align: center;
  font-size: 18px;
  color: #fff;
  padding: 15px 0;
}
.main-tabs {
  display: flex;
  background-color: #cd2523;
}
.tab-item {
  flex: 1;
  text-align: center;
  line-height: 40px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  position: relative;
}
.tab-active {
  background-color: #b9211f;
}
.category-tab {
  background-color: #fff;
  padding: 10px 15px;
}
.category-tab span {
  color: #333;
  font-size: 16px;
  font-weight: 600;
}
/* 内容容器样式 */
.content-container {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
}

/* 文章列表样式 */
.article-list {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 15px;
}
.article-item {
  display: flex;
  text-decoration: none;
  padding: 15px;
  border-radius: 10px;
  background-color: #fff;
  margin-bottom: 15px;
}
.article-item:last-child {
  margin-bottom: 0;
}
/* 文章排名样式 */
.article-rank {
  width: 60px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #d23e34;
  line-height: 1.2;
}
/* 文章内容样式 */
.article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-title {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4em;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* 文章信息列表样式 */
.article-info {
  color: #666;
  font-size: 12px;
  line-height: 1.6em;
  margin-bottom: 10px;
}
/* 文章图片样式 */
.article-image {
  margin: 10px 0;
}
.article-image img {
  width: 100%;
  border-radius: 5px;
}
/* 文章标签样式 */
.article-tag {
  margin: 10px 0;
}
.article-tag span {
  color: #666;
  font-size: 12px;
  background-color: #f7f7f7;
  padding: 2px 8px;
  border-radius: 3px;
}
/* 文章统计数据样式 */
.article-stats {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
}
.article-stats span {
  display: flex;
  align-items: center;
  color: #999;
  font-size: 14px;
  margin-right: 20px;
}
.article-stats i {
  margin-right: 5px;
}